<%--
  Created by IntelliJ IDEA.
  User: 64355
  Date: 2024/11/16
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试</title>
</head>
<body>
    hello <%= request.getAttribute("myname")%>

<h1 style="...">表单验证</h1>
<div style="...">
    <form action = "reg" method="post" enctype = "multipart/form-data"
        style = "...">
        账号：<input name = "name">
        年龄：<input name = "age">
        性别：<input name = "gender">
        邮箱：<input name = "email">
        生日：<input name = "birthday" type="date">
        头像：<input name = "head" type="file">
        <button style="grid-column: 2">注册</button>
        <button style="grid-column: 2" formaction="upkload">上传头像</button>
    </form>
<div>

<%
    System.out.println("========test.jsp=========");
%>
</body>
</html>
